package com.hd123.rumba.gwt.widget2.client.dialog;

import java.util.Iterator;

import com.google.gwt.user.client.ui.PopupListenerCollection;

/**
 * RDialogListener集合
 * 
 * @deprecated 请用{@link RDialog#addOpenHandler()}和
 *             {@link RDialog#addCloseHandler()}代替
 * @author LiQi
 * 
 */
@Deprecated
public class RDialogListenerCollection extends PopupListenerCollection {

  private static final long serialVersionUID = 1L;

  public void fireBeforeShow(RDialog sender) {
    for (Iterator it = iterator(); it.hasNext();) {
      RDialogListener listener = (RDialogListener) it.next();
      listener.beforeShow(sender);
    }
  }
}
